package com.dxy.yesas2020goals.study.partone.disignpattern.decoratorpattern.guper;

/**
 * @author victorydeng
 * @Classname Test
 * @Description TODO
 * @Date 2020/3/7 13:33
 * @Created by victorydeng
 */
public class Test {

  public static void main(String[] args) {
    BaseMenu baseMenu;
    baseMenu = new BaseMenu();
    baseMenu = new BaseMenuDecorator(baseMenu);
    System.out.println("登录前：" + baseMenu.getMenuList());

    baseMenu = new LoginMenuDecorator(baseMenu);
    baseMenu.getMenuList();
    System.out.println("登陆后：" +baseMenu.getMenuList());
  }

}
